package com.blog.model;

public class CategoryLev extends Category {

    private int lev;
    public int getLev() {
        return lev;
    }
    public void setLev(int lev) {
        this.lev = lev;
    }

    /**
     * 类型的转换
     * @param category
     */
    public void from(Category category) {
        this.setId(category.getId());
        this.setName(category.getName());
        this.setParentid(category.getParentid());
        this.setStatus(category.getStatus());
        this.setCount(category.getCount());
        this.setListorder(category.getListorder());
    }
}